<div class="sidebar res-md-mrg-top-50">

    <div id="search-3" class="widget widget_search" style="display: none">
        <form role="search" method="get" class="search-form" action="/news/s">
            <label>
                <input type="search" class="search-field" placeholder="搜索" value="" name="k">
            </label>
            <button type="submit" class="search-submit"><span class="screen-reader-text"><i class="fa fa-search"></i></span></button>
        </form>
    </div>

    <div class="widget widget_category">
        <h6 class="widget_title" data-toggle="collapse" data-target="#category">相关分类</h6>
        <ul id="category" class="collapse in">
            <li><a href="/notice">公告</a></li>
            <li><a href="/news">资讯</a></li>
        </ul>
    </div>

    <section class="widget widget_recent_entries">
        <h6 class="widget_title">最新发布</h6>
        <ul>
            {volist name='new_doc' id='vo'}
            <li>
                <div class="media-left">
                    <div class="thumb">
                        <a href="{:url('/'.$vo['category']['name'].'/'.$vo['id'])}">
                            <img style="width: 60px" src="{$vo.cover?$vo.cover.url:'__IMG__/default_image.gif'}" alt="blog"></a>
                    </div>
                </div>
                <div class="media-body">

                    <h6><a href="{:url('/'.$vo['category']['name'].'/'.$vo['id'])}">{$vo.title}</a></h6>
                    <p>{$vo.create_time}</p>
                </div>
            </li>
            {/volist}
        </ul>
    </section>

    <div class="widget widget_onsale">
        <h6 class="widget_title" data-toggle="collapse" data-target="#onsale">产品</h6>
        <ul id="onsale" class="collapse in">

            {volist name='new_good' id='vo'}
            <li>
                <div class="media-left">
                    <a class="thumb" href="{:url('/product/'.$vo['sn'])}">
                        <img src="{$vo.cover.url}" style="width: 120px" alt="product">
                    </a>
                </div>
                <div class="media-body">
                    <h6 class="title"><a href="{:url('/product/'.$vo['sn'])}">{$vo.title}</a></h6>
                    <strong class="price">有货</strong>
                </div>
            </li>
            {/volist}


        </ul>
    </div>
    <div class="widget widget_one_ad" style="display: none">
        <a href="#">
            <img src="__IMG__/misc/03.jpg" alt="widget">
        </a>
    </div>

</div>